package soundsystem;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * author: xl
 * time: 2018/5/7 14:04
 * description:
 **/
public class SpringAspectTest {

        public static void main(String[] args){
            AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(TrackCountConfig.class);
            CompactDisc knight =(CompactDisc) applicationContext.getBean("compactDisc");
//            CompactDisc knight = applicationContext.getBean("compactDisc",CompactDisc.class);
            knight.playNumber(1);
        }


}
